let apiConfig = {};
/**
 *                        协议                   主机
*/
const domain = window.location.protocol  + "//" + window.location.host;
if (process.env.NODE_ENV == 'development') {
  apiConfig = {
    api_url: "http://xxx", //接口地址
    upload_path: 'http://xxx', //后台上传图片地址
    download_path: 'http://xxx', //后台下载图片地址
  }
} else if (process.env.NODE_ENV == 'production') {
  apiConfig = {
    api_url: domain+"/", //接口地址
    upload_path:  domain+"/", //后台上传图片地址
    download_path: domain+"/", //后台下载图片地址
  }
}
export default apiConfig